package com.baizhiedu.rsm.service.impl;

import com.baizhiedu.rsm.dao.SuggestDao;
import com.baizhiedu.rsm.entity.Suggest;
import com.baizhiedu.rsm.service.SuggestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author lby
 */
@Service
public class SuggestServiceImpl implements SuggestService {
    @Autowired
    private SuggestDao suggestDao;

    @Override
    public int insertOne(Suggest suggest) {
        return suggestDao.insert(suggest);
    }

    @Override
    public List<Suggest> showSuggestByDate(Date suggestDate) {
        return suggestDao.showSuggestByDate(suggestDate);
    }
}
